<template>
  <div class="location-center box-all">
    <Charts :data="data" />
    <div class="box-foot" />
  </div>
</template>

<script setup lang="ts">
import Charts from "./Charts.vue";
import { RightCenterConfig } from "@/chartsConfig/rightCenter";
import { useDataStore } from "@/store/data";
import { computed } from "vue";
const dataStore = useDataStore();
const data = computed(() =>
  RightCenterConfig(dataStore.activeData.xData, dataStore.activeData.yData)
);
</script>
